const urlQuery = (query) => {
  if (!query.split("?")[1]) return;
  const query_arr = query.split("?")[1].split("#")[0].split("&");
  let params_obj = {};
  query_arr.forEach((item) => {
    let arr = item.split("=");
    params_obj[arr[0]] = arr[1];
  });
  return params_obj;
};
export default urlQuery;
